<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>滑动门技术</title>
    <style>
        /* 利用pandding 与精灵图实现推拉门的效果 */
        a {
            margin: 100px;
            height: 33px;
            /* 千万不能给宽度，给了宽度就写死了是对滴，我们要推拉门 自由缩放 */
            display: inline-block;
            background:url(../img/lTcb_ve.png) no-repeat left;
            padding-left: 24px;
            color: #fff;
            line-height: 33px;
            text-decoration:none;
        }
        a span {
            height: 33px;
            /* span 千万不能给宽度 利用padding挤开 我们span要右边的圆角 所以说背景右对齐 */
            display: inline-block;
            background:url(../img/lTcb_ve.png) no-repeat right;
            padding-right: 24px;
        }
    </style>
</head>
<body>
    <a href="#">
        <span>首页</span>
    </a>
    <a href="#">
        <span>首页首页</span>
    </a>
    <a href="#">
        <span>首页首页首页</span>
    </a>
    <a href="#">
        <span>首页3首页首页</span>
    </a>
    <a href="#">
        <span>首页4首页首页首页首页</span>
    </a>
</body>
</html>